ispell.el,flyspell.el: Preserve session localwords when switching back buffers.
authorAgustin Martin <agustin.martin@hispalinux.es>
Mon, 23 Apr 2012 10:33:25 +0000 (12:33 +0200)
committerAgustin Martin <agustin.martin@hispalinux.es>
Mon, 23 Apr 2012 10:33:25 +0000 (12:33 +0200)
commitfd5aac38cef425a8e4808c30dbcc9015a1fdc672
treeed32240356d67c49f7da2f1be4997decd5ce0df4
parent7f016be184a7e26d5ed62499cebd5c4a33b45003
ispell.el,flyspell.el: Preserve session localwords when switching back buffers.

Once a word is declared valid for a session and a buffer it should
stay valid for that buffer regardless buffer switches unless ispell
process is explicitly killed or dictionary changed for that buffer.

However, it is currently lost when we switch to a different buffer
that triggers a new ispell process and then switch back to the
original buffer (triggering a  new ispell restart).

These changes try to keep buffer session localwords accepted in above
case.
lisp/ChangeLog
lisp/textmodes/flyspell.el
lisp/textmodes/ispell.el